home *** CD-ROM | disk | FTP | other *** search
- %if lang = MPW%
- { %filename% -- dialog }
- { Created %date% %time% by AppMaker }
- %endif%
-
- const
- %for each item gen itemNr%
-
- %for each item gen classMethods%
- {$S ARes}
- {----------}
- Procedure T%dlogname%.DoChoice (origView: TView;
- itsChoice: integer); Override;
- var
- origID: IDType;
- Begin
- origID := origView.fIdentifier;
- %for each item gen doChoice%
-
- %if modalOneShot%
- DismissDialog (origID);
- %else%
- inherited DoChoice (origView, itsChoice);
- %endif%
- End; {DoChoice}
-
- {$IFC qInspector}
- {$S AFields}
- {----------}
- Procedure T%dlogname%.Fields (
- Procedure DoToField (fieldName: Str255;
- fieldAddr: Ptr;
- fieldType: integer)
- ); Override;
- Begin
- DoToField ('T%dlogname%', nil, bClass);
- inherited Fields (DoToField);
- End; {Fields}
- {$ENDC}
-
- %if modeless%
- {$S AOpen}
- {----------}
- Function New%dlogname%: TWindow;
- var
- theWindow: TWindow;
- Begin
- theWindow := NewTemplateWindow (k%dlogname%ID, nil);
-
- if gDeadStripSuppression then begin
- if Member (TObject (nil), T%dlogname%) then ;
- %for each item gen gDeadStripSuppression%
-
- end;
-
- New%dlogname% := theWindow;
- End; {New%dlogname%}
- %else%
- {$S ASelCommand}
- {----------}
- Procedure Do%dlogname%;
- var
- aWindow: TWindow;
- aDialogView: TDialogView;
- dismisser: IDType;
- Begin
- aWindow := NewTemplateWindow (k%dlogname%ID, nil);
- {initialize subviews from current settings}
- aDialogView := TDialogView (aWindow.FindSubView('dlog'));
- dismisser := aDialogView.PoseModally;
- if dismisser <> aDialogView.fCancelItem then begin
- {use new settings from subviews}
- end;
- aWindow.Close;
-
- if gDeadStripSuppression then begin
- if Member (TObject (nil), T%dlogname%) then ;
- %for each item gen gDeadStripSuppression%
-
- end;
-
- End; {Do%dlogname%}
- %endif%
- %If lang = MPW%
-
- {End %filename%}
- %endif%
-